package indi.zn.commons.easiness;

import java.util.UUID;

public class Uuids {

	public static String simpleId() {
		
		String id=UUID.randomUUID().toString();
		
		return id=id.replaceAll("-", "");
	
	}
	
	public static String simpleId(int l) {
		
		if(0>l&&l>32) return null;
		
		String id=UUID.randomUUID().toString();
		
		return id=id.replaceAll("-", "").substring(0, l);
	
	}
	
	
	public static void main(String[] args) {
		
		System.out.println(Uuids.simpleId(16));
		
	}

}
